<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@page import="logic.newLogic2.Facade3"%>
<html>
<head>
<title>secret 4 plus dog</title>
<meta http-equiv="Content-Type"
	content="text/html; charset=windows-1255">
<link href="secret4.css" rel="stylesheet" type="text/css">
</head>

<body bgcolor="#FF6600" dir="ltr">
<a href="login.jsp">Logout</a>    <a href="userPanel.jsp">Main panel</a>
<table height="100%" width="100%" border="0" cellspacing="3"
	cellpadding="2">
	<tr>
		<td width="10%">&nbsp;</td>
		<td valign="top">
		<table height="100%" width="100%" border="0" cellspacing="3"
			cellpadding="2">
			<tr height="20%">
				<td>&nbsp;</td>
			</tr>
			<tr height="80%">
				<td>
				<table align="left" width="100%" border="0" cellspacing="3"
					cellpadding="2">
					<tr>
						<td width="65%" align="left" valign="top">
						<table width="100%" border="0" cellspacing="3" cellpadding="2">
							<tr>
								<td class="title">User's Movies</td>
							</tr>
							<tr>
								<td>
								<form name="r1details" method="post" action="facade.jsp">
								<table width="100%" border="0" cellspacing="3" cellpadding="2">
									<tr>
										<td>&nbsp;</td>
									</tr>
									<tr>
										<td><input type="hidden" name="form" value="r1details">
										<table class="bolded" width="100%" border="0" cellspacing="3"
											cellpadding="2">

											<tr>
												<td>Select a user:</td>
											</tr>

											<tr>
												<td><select name="user">
													<%
													if ((String) session.getAttribute("currentUser") == null) {
														response.sendRedirect("login.jsp");
													}else if (((String) session.getAttribute("type")).equals("user")) {
														response.sendRedirect("userPanel.jsp?Bad");
													} else {
														String[] users = Facade3.getInstance().getAllUsers();
														for (int i = 0; i < users.length; i++) {
															out.println("<option value=\"" + users[i] + "\">" + users[i]
																	+ "</option>");
														}
													}
													%>
												</select></td>
											</tr>
											<tr>
												<td>Select a rate:</td>
											</tr>

											<tr>
												<td><select name="rate">
													<%
													if ((String) session.getAttribute("currentUser") == null) {
														response.sendRedirect("login.jsp");
													} else {
														String[] rates = {"1","2","3","4","5"};

														for (int i = 0; i < rates.length; i++) {
															out.println("<option value=\"" + rates[i] + "\">" + rates[i]
																	+ "</option>");
														}
													}
													%>
												</select></td>
											</tr>
											<tr>
												<td>&nbsp;</td>
											</tr>
											<tr>
												<td>&nbsp;</td>
											</tr>
										</table>

										</td>
									</tr>
									<tr>
										<td>
											<input type="submit" class="button" name="action"
													title="report" value="report"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

											</td>
									</tr>

								</table>
								</form>
								</td>
							</tr>
						</table>
						</td>
						<td><img src="Secret4PlusDog.jpg" width="220" height="407"></td>
					</tr>
				</table>
				</td>
			</tr>
		</table>
		</td>
		<td width="10%">&nbsp;</td>
	</tr>
</table>

</body>
</html>
